package cn.kgc.login.service;

import cn.kgc.common.entity.Author;

/**
 * Created by teacher ZHANG on 2022/12/5
 */
public interface UserService {
    public void saveAuthor(String token, Author author);
    public Author findAuthor(String token);

    public Boolean tokenExist(String token);

    public void setExpire(String key, Integer secs);
    public Integer getExpire(String key);

    public void savePhone(String phone, String code);
    public String getPhone(String phone);
}
